<?php
header('content-type:text/html;charset=utf-8');

$ASSETS_TIME = time();  // 资源版本，刷新浏览器文件缓存
require 'wog_act_config.php';
?>
<!--
/*=====================================================
 Copyright (C) ETERNAL<iqstar@ms24.hinet.net>
 URL : http://www.et99.net

请仔细阅读以下许可协议。当您使用本软体，您将自动成为本协议的一方并受到本协议的约束。

软体和文档受到台湾及中国大陆著作权法及国际条约的保护。您不得：
a)营利、出租或者出借软体或文档的任何部分。
b)反向工程、分解、反编译或者企图察看软体的源代码作为商业用途。
c)修改或者改变软体，或者与其他程式结合。

许可人保留软体及文档的所有权利和权益。您不能通过本许可协定获得软体的任何所有权和知识产权。
===================================================== */
-->
<!DOCTYPE HTML>
<html>
<head>
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="#1b1d22">
    <meta name="apple-mobile-web-app-title" content="WEB幻想"/>
    <!--    <link rel="apple-touch-icon-precomposed" href="assets/i/app-icon72x72@2x.png">-->

    <META NAME="keywords" CONTENT="Online FF Battle - WOG">
    <META NAME="description" CONTENT="Online FF Battle - WOG">
    <META NAME="author" CONTENT="ETERNAL">
    <META NAME="copyright" CONTENT="Copyright (C) ETERNAL">
    <title>网页游戏WebGame,FFA线上游戏-Online FF Battle - WOG V4 Copyright (C) ETERNAL</title>
    <meta content="text/html; charset=utf-8" http-equiv=content-type>
    <link rel="stylesheet" href="./css/wog_infinity/main.css?t=<?= $ASSETS_TIME ?>">
    <script src="./js/dom-drag.js"></script>
    <script src="./js/wog_data.js?t=<?= $ASSETS_TIME ?>"></script>
    <script src="./js/wog_group.js?t=<?= $ASSETS_TIME ?>"></script>
    <script src="./js/wog_pet.js?t=<?= $ASSETS_TIME ?>"></script>
    <script src="./js/wog_shop.js?t=<?= $ASSETS_TIME ?>"></script>
    <script src="./js/wog_job_skill.js?t=<?= $ASSETS_TIME ?>"></script>
    <script src="./js/wog_item.js?t=<?= $ASSETS_TIME ?>"></script>
    <script src="./js/wog_team.js?t=<?= $ASSETS_TIME ?>"></script>
    <script src="./js/wog_mission.js?t=<?= $ASSETS_TIME ?>"></script>
    <script src="./js/wog_fight.js?t=<?= $ASSETS_TIME ?>"></script>
    <script src="./js/wog_chara.js?t=<?= $ASSETS_TIME ?>"></script>
    <script src="./js/wog_tool.js?t=<?= $ASSETS_TIME ?>"></script>
    <script src="./js/wog_etc_view.js?t=<?= $ASSETS_TIME ?>"></script>
    <script src="./js/wog_function.js?t=<?= $ASSETS_TIME ?>"></script>
    <script src="./js/wog_message_view.js"></script>
    <script src="./js/numeraljs/numeral.min.js"></script>
    <script src="./js/numeraljs/locales/chs.min.js"></script>
    <script src="./js/jquery-3.5.1.min.js"></script>
    <script src="./js/jquery.toast.min.js"></script>
    <script src="./js/buzz.js"></script>
    <script>
        BGM = new buzz.sound('./music/bgm-main.mp3', {
            preload: true,
            autoplay: true,
            loop: true
        });
        AUTO_FIGHT = null;
        FCD = <?= $wog_array['f_time'] ?>;
        NOT_ACT_FCD = <?= $wog_array['f_time1'] ?>
    </script>
</head>
<body class="uniq-body">
<div class="layout" id="layout">
    <div class="online-panel">
        <iframe src="" name="wog_online" id="wog_online"></iframe>
    </div>
    <iframe name="peolist" class="peolist" src="wog_etc.php?f=peo2"></iframe>
    <iframe id="msn" name="msn" class="msn" src=""></iframe>
    <iframe style="height: 0;" src="" name="news" id="news" class="pos-f top-left-0"></iframe>
    <header class="header">
        <iframe src="wog_top.php?t=<?= $ASSETS_TIME ?>" name="top_view" id="top_view"></iframe>
    </header>
    <div class="main d-flex flex-col">

        <div class="flex-1 height-0">
            <iframe name="wog_view" id="wog_view"></iframe>
        </div>
        <div class="chat-view">
            <iframe src="wog_chat_view.php" id="wog_chat" name="wog_chat"></iframe>
        </div>

        <div class="mission-view" id="mission-view">
            <?php if (!empty($_GET["recomm"])) { ?>
                <iframe name="mission" src="wog_etc.php?f=recomm&recommid=<?= $_GET["recomm"] ?>"></iframe>
            <?php } else { ?>
                <iframe name="mission" src="wog_etc.php?f=well"></iframe>
            <?php } ?>
        </div>

    </div>
    <footer class="footer">
        <iframe src="wog_foot.php" name="foot" id="foot"></iframe>
    </footer>
    <script>
        // var cssLink = document.createElement("link");
        // cssLink.href = `/css/wog_infinity/main.css?t=${new Date().getTime()}`;
        // cssLink.rel = "stylesheet";
        // cssLink.type = "text/css";
        // var iframes = document.getElementsByTagName('iframe');
        // var jq = document.createElement('script');

        // for (const iframe of iframes) {
        // iframe.contentWindow.document.head.appendChild(cssLink);
        // iframe.contentWindow.document.head.appendChild(jq);
        // }
    </script>
</div>
</body>
</html>